<template>
  <header>
    <slot name='left'><i @click="back" class="iconfont icon-jiantou1"></i></slot>
    <h3><slot>首页</slot></h3>
    <div></div>
  </header>
</template>
<style lang="scss">
@import  '@/lib/reset.scss';
header {
  @include rect(100%,0.5rem);
  @include background-color(#333);
  @include padding(0 0.15rem);
  i {
    @include color(#fff);
    @include line-height(0.5rem);
  }
  h3 {
    @include line-height(0.5rem);
    @include color(#fff);
    @include font-weight(normal);
    @include font-size(0.16rem);
    letter-spacing: 10px;
  }
}
</style>
<script>
export default {
  methods: {
    back () {
      this.$router.back()
    }
  }
}
</script>
